import 'comment_model.dart';
import 'comment_statistics.dart';
import 'pager_result.dart';

class CommentListResult {
  PagerResult<CommentModel> pager;
  CommentStatistics statistics;

  CommentListResult.fromMap(Map<String, dynamic> map) {
    if (map["pager"] != null) {
      pager = PagerResult<CommentModel>.fromMap(map["pager"],
          (Map<String, dynamic> child) => CommentModel.fromMap(child));
    }
    if (map["statistics"] != null) {
      statistics = CommentStatistics.fromMap(map["statistics"]);
    }
  }
}
